<%- include('../../public/header.html')%>
<div class="table-container">
    <table>
        <thead>
            <tr>
                <th>名称</th>
                <th>分类</th>
                <th>图片</th>
                <th>跳转地址</th>
                <th>排序</th>
                <th>状态</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            <%for(var i = 0;i< list.length;i++){%>
            <tr>
                <td><%=list[i].webname%></td>
                <td><%if(list[i].category==1){%>网站<%}else if(list[i].category==2){%>app<%}else{%>小程序<%}%></td>
                <td><img style="width: 25px; height: 25px;" src="<%=list[i].img_focus%>" alt=""></td>
                <td><%=list[i].link%></td>
                <td><%=list[i].sort%></td>
                <td align="center">
                    <%if(list[i].status==1){%>
                        <img src="/admin/image/yes.gif" class="chstatus">
    
                        <%}else{%>
                        <img src="/admin/image/no.gif" class="chstatus"/>
                        <%}%>
                </td>
                <td>
                    <a href="/admin/focus/edit?id=<%=list[i]._id%>"  alt="">修改</a>
                   <a href="/admin/focus/delete?id=<%=list[i]._id%>" class="delete" alt="">删除</a>
                </td>
            </tr>
            <%}%>
        </tbody>
    </table>
</div>

</body>
</html>